package com.bw.zcb.network.tool;

import androidx.annotation.NonNull;

import com.bw.zcb.mvp.base.model.BaseEntity;

import io.reactivex.functions.Function;
/**
 * 针对网络请求RXJava异步任务调度时子类向基类转型的工具类
 * */
public class ChangeFunction<T extends  BaseEntity> implements Function <T ,BaseEntity>{
    @Override
    public BaseEntity apply(@NonNull T t) throws Exception {
        return t;
    }
}
